1 00:00:00,200 --> 00:00:04,610 Today I'm going to create a beam that's going to point me to the lot. 2 00:00:04,640 --> 00:00:05,930 If I own a lot. 3 00:00:05,960 --> 00:00:07,630 So there's going to be a lot of these lots. 4 00:00:07,640 --> 00:00:08,540 I enter the game. 5 00:00:08,540 --> 00:00:09,230 I own one. 6 00:00:09,230 --> 00:00:10,040 Which one is mine? 7 00:00:10,040 --> 00:00:11,480 Oh, I'll just follow the beam. 8 00:00:11,480 --> 00:00:14,750 And then when I get to my lot, the beam will disappear. 9 00:00:14,750 --> 00:00:17,750 And then we'll also have a time out because you might not want to go to the lot. 10 00:00:17,780 --> 00:00:20,120 You might want to run around and kill monsters or something. 11 00:00:20,120 --> 00:00:22,220 So let's go ahead and get started with that. 12 00:00:23,020 --> 00:00:23,360 All right. 13 00:00:23,360 --> 00:00:30,140 To make our beam, let's go to the workspace, open that up, go to our lot collection, open this up 14 00:00:30,170 --> 00:00:34,610 then on the player lot, which we're going to duplicate, make a lot of them, but we only have one 15 00:00:34,610 --> 00:00:35,150 now. 16 00:00:35,150 --> 00:00:38,630 Open that and then we have a part that we called lot. 17 00:00:38,660 --> 00:00:42,380 That's the actual gray part that looks like a lot on the lot. 18 00:00:42,410 --> 00:00:48,440 I need two attachments for my beam, so I'm going to hit the plus sign, hit an A, get an attachment 19 00:00:48,440 --> 00:00:52,550 and I'm going to call this one at zero. 20 00:00:53,150 --> 00:00:53,570 All right. 21 00:00:53,570 --> 00:00:54,710 I'm going to do it again. 22 00:00:54,710 --> 00:00:56,150 Or actually, I'll just duplicate it. 23 00:00:56,150 --> 00:00:57,200 Control D. 24 00:00:58,600 --> 00:01:02,740 And we got a second one at one. 25 00:01:02,770 --> 00:01:04,300 Now I need a beam. 26 00:01:04,310 --> 00:01:05,410 Go to my lot. 27 00:01:05,500 --> 00:01:06,640 Hit the plus. 28 00:01:06,670 --> 00:01:08,620 Hit a B for beam. 29 00:01:08,650 --> 00:01:09,610 There's our beam. 30 00:01:09,610 --> 00:01:12,490 We can't see the beam because we didn't attach it to the attachments. 31 00:01:12,520 --> 00:01:17,470 Let's get our at zero, which is going to be the start of the beam. 32 00:01:17,740 --> 00:01:24,730 Hit the move and I'm going to drag it back to where I want the beam to start. 33 00:01:25,570 --> 00:01:26,500 There we go. 34 00:01:27,340 --> 00:01:28,050 That's pretty good. 35 00:01:28,060 --> 00:01:29,170 Doesn't have to be perfect. 36 00:01:30,480 --> 00:01:33,450 And now get the beam itself. 37 00:01:33,570 --> 00:01:41,310 And I'm going to scroll down to where it says Attachment zero, Click to the right of that, click at 38 00:01:41,340 --> 00:01:46,440 zero, Attachment one, click at one. 39 00:01:46,440 --> 00:01:47,490 All right. 40 00:01:47,520 --> 00:01:53,180 Now, if you'll notice, sometimes we can't see the beam we need to hit. 41 00:01:53,920 --> 00:01:55,420 Face camera. 42 00:01:55,420 --> 00:01:56,650 It's down here on the bottom. 43 00:01:56,650 --> 00:01:57,970 Face camera. 44 00:01:58,630 --> 00:01:59,530 There we go. 45 00:01:59,530 --> 00:02:03,040 Now, when we move around, we can see the beam no matter where we're at. 46 00:02:03,040 --> 00:02:08,410 And that's good because this is going to be seen only by the player who owns the lot. 47 00:02:08,440 --> 00:02:10,180 So it's going to be a client side event. 48 00:02:10,750 --> 00:02:11,140 All right. 49 00:02:11,170 --> 00:02:15,610 Now, on segments, I want to get a curve on my beam. 50 00:02:15,610 --> 00:02:20,980 So I'm going to increase the segments a little bit, maybe to 20 double it, I guess that's not a little 51 00:02:20,980 --> 00:02:21,520 bit. 52 00:02:21,520 --> 00:02:27,790 And then on curve size zero above where it says segments. 53 00:02:28,650 --> 00:02:31,830 I am going to make that 25. 54 00:02:31,830 --> 00:02:36,390 And what that's doing, it's going to the attachment zero. 55 00:02:36,420 --> 00:02:42,600 Going 25 studs in this direction and we're going to put a bend point there for a curve. 56 00:02:42,630 --> 00:02:44,490 It's called a bezier curve. 57 00:02:44,520 --> 00:02:47,890 It's not really important that you understand bezier curves. 58 00:02:47,910 --> 00:02:52,570 We're just going to add a curve and you can play around with it and see the effects. 59 00:02:52,590 --> 00:02:53,760 Let's do that. 60 00:02:53,760 --> 00:02:56,910 Same thing to curve size one. 61 00:02:57,960 --> 00:03:00,630 And you're like, Oh man, I didn't change at all. 62 00:03:00,630 --> 00:03:01,920 Well, that's all right. 63 00:03:01,950 --> 00:03:08,970 We have one more thing to do for that, for that changing of the curve hit at zero. 64 00:03:09,690 --> 00:03:11,930 Hit not scale, but rotate. 65 00:03:11,930 --> 00:03:15,710 And let's just bend this up like 15 degrees. 66 00:03:17,430 --> 00:03:20,730 Let's go to at one bend that up. 67 00:03:21,790 --> 00:03:22,960 15 degrees. 68 00:03:22,960 --> 00:03:28,620 I have one seven and one half degree increment snaps and now we've got a nice little bend. 69 00:03:28,630 --> 00:03:34,420 So you can play with that, play with that curve size zero curve size one and see what it does. 70 00:03:34,450 --> 00:03:37,630 That way you can understand what the Bezier curves are doing. 71 00:03:37,630 --> 00:03:40,150 You don't have to understand the mathematics behind it. 72 00:03:40,360 --> 00:03:41,770 All right, let's go to the beam. 73 00:03:41,770 --> 00:03:43,810 Let's go up, change the color. 74 00:03:43,810 --> 00:03:44,470 Maybe. 75 00:03:44,500 --> 00:03:46,930 Maybe like a maybe like a yellow. 76 00:03:46,930 --> 00:03:48,400 Like a light yellow. 77 00:03:49,870 --> 00:03:51,700 And you can get color gradients too. 78 00:03:51,700 --> 00:03:56,800 But what I want to do is I'm going to get the sparkle from the particle emitters. 79 00:03:56,830 --> 00:04:02,950 I use that as the texture and you can play around with textures too, but let's just do that with the 80 00:04:02,950 --> 00:04:03,670 sparkles. 81 00:04:03,670 --> 00:04:05,380 So I'm going to go to Lot. 82 00:04:06,220 --> 00:04:13,420 Hit the plus hit a P for particle emitter and we got some sparkles coming out. 83 00:04:13,450 --> 00:04:16,840 Let's click on our particle emitter and steal the sparkles. 84 00:04:16,840 --> 00:04:20,770 So go down to your texture, make this a little bigger. 85 00:04:20,770 --> 00:04:24,580 And we have our default sparkles texture here. 86 00:04:24,580 --> 00:04:26,890 I'm going to double click that. 87 00:04:26,890 --> 00:04:28,060 So it's all selected. 88 00:04:28,060 --> 00:04:30,310 Do a control C to copy it. 89 00:04:30,970 --> 00:04:32,500 I'm going to go back. 90 00:04:33,390 --> 00:04:37,800 To my beam and then go to texture control. 91 00:04:37,800 --> 00:04:40,590 V hit enter. 92 00:04:40,990 --> 00:04:41,310 Ooh. 93 00:04:41,340 --> 00:04:42,690 Now we got something different. 94 00:04:42,720 --> 00:04:44,520 It doesn't really look like a sparkle. 95 00:04:45,030 --> 00:04:46,470 I'm going to get rid of my particle emitter. 96 00:04:46,470 --> 00:04:47,220 I don't really need it. 97 00:04:47,220 --> 00:04:48,180 I just wanted the. 98 00:04:48,180 --> 00:04:49,500 I wanted the texture. 99 00:04:49,500 --> 00:04:50,600 Texture. 100 00:04:51,360 --> 00:04:53,820 All right, let's make that beam look a little better. 101 00:04:54,030 --> 00:04:59,100 Let's click the beam, and I'm going to go down to texture length. 102 00:04:59,100 --> 00:05:03,420 I'm going to increase the size so you can play around with this, too. 103 00:05:03,660 --> 00:05:03,960 All right. 104 00:05:03,990 --> 00:05:06,480 Now we've got things that look a little more sparkle like. 105 00:05:07,970 --> 00:05:11,990 I'm going to go to texture, speed, maybe make that a three. 106 00:05:12,320 --> 00:05:15,050 If you make it a negative value, it goes the other way. 107 00:05:15,860 --> 00:05:16,850 A transparency. 108 00:05:16,850 --> 00:05:22,520 I might make it a little more transparent instead of 0.5, which is the default, I'll make a 0.7. 109 00:05:23,370 --> 00:05:25,200 And let's keep going down. 110 00:05:26,610 --> 00:05:27,180 Oh, the width. 111 00:05:27,180 --> 00:05:29,700 I'm going to make it a little thicker instead of width. 112 00:05:29,700 --> 00:05:31,470 Zero one. 113 00:05:31,480 --> 00:05:32,820 We'll make that a two. 114 00:05:33,940 --> 00:05:37,680 If you make one side bigger than the other, it'll get it'll get smaller. 115 00:05:37,680 --> 00:05:39,000 It'll shrink as you go out. 116 00:05:39,000 --> 00:05:45,120 But I'm going to make them both the same size to on width, zero and width one. 117 00:05:46,110 --> 00:05:47,310 Nice. 118 00:05:47,850 --> 00:05:48,180 All right. 119 00:05:48,180 --> 00:05:52,260 So this is now something that can be seen by all the players. 120 00:05:52,260 --> 00:05:54,000 It's a server side thing. 121 00:05:54,000 --> 00:05:56,490 We want to make this a client side thing. 122 00:05:56,490 --> 00:06:04,050 So on this beam, I'm going to scroll up to where it says enabled and I'm going to disable it. 123 00:06:05,100 --> 00:06:10,470 And then I'm going to turn it on with code for only the player that owns the lot.